Remote Client actions

Used to upload or download a bunch of files to and from a remote HMI device. These actions can only be used from a remote HMI Client to access remote files via FTP.

Important: Enable FTP support and give all necessary user rights to the folders used to transfer files.

UploadToHMI

Opens a dialog to select the folder that contains the files to be uploaded to the remote HMI device.

Parameter Description
Destination Destination path on HMI device for file upload
Filter File extensions of the files to be uploaded separated by commas (for example, *.txt, *csv)
DownloadFromHMI

Opens a dialog to select the folder that contains the files to be downloaded from the remote HMI device.

Parameter Description

Source

Source path on the HMI device for file download

Filter

File extensions of the files to be downloaded separated by commas (for example, *.txt, *.csv)
JavaScript Interface

boolean project.uploadToHMI(dirPath, strFilter);

boolean project.downloadFromHMI(dirPath, strFilter);

Parameter Description
dirPath Source path on the HMI device for file download/upload
strFilter File extensions of the files to be displayed separated by commas (for example, *.txt)

Return values:

True Transfer successful
False Transfer failed

Note: When transferred, system variables are updated with the status of ongoing operations (see "Remote Client variables")